DR by Caco MaiaCreated by Brazilian trader Caco Maia,this indicator signals an entry when the price breaks through both a slow and fast average while the TRIX and Stochastic are going in the same direction.
Must be used in conjunction with the market context,e.g. Trendlines,Fibonacci Retracements/Extensions or other indicators.
Filter 1 : The Fast Average must be going up/down.
Filter 2 : There`s a limit to the Slow Average inclination,only allowing entries if the Slow Average is "flat" or in the same direction of the signal.
Filter 3 : Uses both Filters.
在腳本中搜尋"Up down"
Multi Time Frame Candles with Volume Info / 3DHello Traders,
This is my second Multi Time Frame Candles script but with this new one, you will have some new features such volume info, remaining time to close of higher time frame candle and also developed using new features of Pine such array of lines. also I tried to make it 3D for better visualization ;) also it shows new highs/lows / breakouts.
I tried to make many things optional, so you can change almost everything using options.
What you can change using options:
- Higher time frame
- Number of Candles
- Candle Colors Up/Down
- Wick Color
- Volume colors Up/Down
- Text color of Remaining Time
- Shadow Color
- Background color
- Start bar of the candles (so you can see many higher times frame candles in same window)
- 3D effect, by default it's enables but you can disable 3D view
Lets see some examples:
Remaining time:
Breakouts:
You can combine different higher time frames:
if you don't want 3D view then combining different higher time frames:
You can change background color:
Enjoy!
Barcolor Five Over Five 2021-1-12This setting is pretty simple and straightforward. It is meant to color the price bars based on whether the trend is up, down, or sideways. This setting can be used in any market and becomes devastating when used on multiple time frames.
TMO with TTM SqueezeApplication of the TTM squeeze and the short-term momentum TTM Wave A in action. This is an example where the short-term wave will react faster than the TTM to give you a signal to start building your positions.
This indicator needs to be combined with "TTM Wave A" (add to existing pane).
The TTM Squeeze works like a better MACD. There is a zeroline and histogram bars above / below represent positive and negative momo. As the height of the bar decreases when above the zeroline, that is called decreasingly positive momo and as the height of the bar decreases when below the zeroline, that is called decreasingly negative momo. The dots on the TTM Squeeze: Red dots represent consolidation where Bollingers are inside the Keltner Channels and green dots represent a move out of consolidation or "squeeze fire". As price action comes out of consolidation there is a bigger move up/down depending on where momo is heading and where prices are (key support/resistance levels, fib areas). You want to use the TTM Squeeze and A wave TOGETHER - TTM Squeeze is your main momo and your A wave is a short-term momo wave that reacts faster and works as a leading gauge. You need to use them TOGETHER to gauge where price action may be heading. When the TTM Squeeze and A wave move lockstep together, let's say both are decreasingly positive, there is a good probability it continues to move in that direction to the next support levels. TWO bars on the TTM Squeeze of different heights is confirmation that in most cases means it will move in the direction of those bars. So if decreasingly positive, you'll see two darker bars. By the time you get your 2nd bar on the TTM Squeeze, it is often too late or you're losing profit. Way to counter that is after you get one darker bar in the opposite direction of current trend, use A wave to "predict" the next wave, the more A wave histogram bars going towards the other direction, the higher the certainty it will hit. Lastly, using these waves together works best when you look at it on MULTIPLE TIME FRAMES. (Credit for this details goes to Brady from Atlas).
TTM Wave AApplication of the TTM squeeze and the short-term momentum TTM Wave A in action. This is an example where the short-term wave will react faster than the TTM to give you a signal to start building your positions.
This indicator needs to be combined with "TMO with TTM Squeeze" (add to existing pane).
The TTM Squeeze works like a better MACD. There is a zeroline and histogram bars above / below represent positive and negative momo. As the height of the bar decreases when above the zeroline, that is called decreasingly positive momo and as the height of the bar decreases when below the zeroline, that is called decreasingly negative momo. The dots on the TTM Squeeze: Red dots represent consolidation where Bollingers are inside the Keltner Channels and green dots represent a move out of consolidation or "squeeze fire". As price action comes out of consolidation there is a bigger move up/down depending on where momo is heading and where prices are (key support/resistance levels, fib areas). You want to use the TTM Squeeze and A wave TOGETHER - TTM Squeeze is your main momo and your A wave is a short-term momo wave that reacts faster and works as a leading gauge. You need to use them TOGETHER to gauge where price action may be heading. When the TTM Squeeze and A wave move lockstep together, let's say both are decreasingly positive, there is a good probability it continues to move in that direction to the next support levels. TWO bars on the TTM Squeeze of different heights is confirmation that in most cases means it will move in the direction of those bars. So if decreasingly positive, you'll see two darker bars. By the time you get your 2nd bar on the TTM Squeeze, it is often too late or you're losing profit. Way to counter that is after you get one darker bar in the opposite direction of current trend, use A wave to "predict" the next wave, the more A wave histogram bars going towards the other direction, the higher the certainty it will hit. Lastly, using these waves together works best when you look at it on MULTIPLE TIME FRAMES. (Credit for this details goes to Brady from Atlas).
Vision VolumeAfter reading an article on how to trade volume I felt that I needed some kind of indicator using price action and volume together.
More precisely I tried to build two indicators. Bear in mind this indactor is very simple because it only evaluates each bar with its previous bar and an average.
Nr.1 Weak/fake push: Price suddenly goes up/down a lot more but without much volume being traded -> sign of a fake move or low interest
Nr 2 Price action resistance: After an up or down move price suddenly stops moving but high volumes are being traded. This means high resistance from sellers in a rally or buyers in a decline.
This is very simple and as you can see it is often not a clear signal. I will try to improve it further. If a fake move bar (purple) has a close near its new high we don't know if the fake push will continue. As you can see on the chart. some reversal signs come a little to early.
You can re-color labels and turn them off optionally.
This is built for educational purposes only. I hope you find it useful.
Design by Hook
Stochastic with Bollinger & EMAIn this script
I combined the various of the oscillator
Stochastic (STOCH) with BB (Bollinger Bands).
Each cut of K and D creates a mark (+) Red / green - accordingly.
As the Stochastic (K) crosses the BB base, a green / red point is formed accordingly.
As a sign it is possible to continue up / down.
I added EMA8 to K (style circles)
When the oscillator is above the EMA - it is possible that this is a clear sign of an increase.
Band 50 was also added to facilitate the calculations.
MFI & EMA & Bollinger BandsIn this script
I combined the various of the oscillator
MFI ( Money Flow Index ) with BB ( Bollinger Bands ).
As the MFI crosses the BB base, a green / red point is formed accordingly.
As a sign it is possible to continue up / down.
I added EMA8 to MFI (style circles)
When the oscillator is above the EMA - it is possible that this is a clear sign of an increase.
Band 50 was also added to facilitate the calculations.
Double Zig Zag with HHLLHello Traders,
Here Double Zig Zag with HHLL script is with you. it calculates 2 Zig Zag simultaneously and draws them, and also it calculates and puts Higher High, Lower Low, Higher Low, Lower High labels. All these are done dynamically, it means last HH/HL/LL/LH can change. if price continues to go up then HL can turn to LL or if price continues to go down then LH can turn to HH. This script can be used for different purposes such trend analysis, support/resistance levels, breakouts etc.
I tried to make many things optional:
You can set Periods for Zig Zags as you wish
You can set different colors for both Zig Zag Up/Down lines
You have option to show both Zig Zag, one of them or none them
You have option to show both HHLL, one of them or none them
You can set Zig Zag 1 line style as Dashed or Dotted
You can set Line Widths for Zig Zags
Some examples:
Enjoy!
One-Stop Trading SetupOne-Stop Trading Setup:
This script designed to identify up, down, and sideways trends. 200 HMA, 9 EMA, PSAR, and ATR are used to identify the strength of any instrument.
Candle Colors - Simpler approach to follow:
Green color indicates for up side trade signals
Red color indicates for down side trade signals
Yellow color can be interpreted for stop, sideways, and counter trade trade signals
Multiple Trade Setups:
Green Zone - Trading green candles within green zone has better odds of long trades
Red Zone - Trading red candles within red zone has better odds of short trades
200 HMA - Candles above 200 HMA mostly for long trades. Candles below 200 HMA usually for short trades. But the zone also very important to consider
9 EMA - Cross over above 200 HMA in Green zone, look for long trades. Cross over below 200 HMA in red zone, look for short trades
PSAR - This can be used as potential initial warning sign. Also can be used to exit partial or wait for it goes to opposite side for taking trade decisions
Candle Above all - If Green candle and above all the indicators, then very good sign of long side. If red candle and below all indicators, then very good sign of short side.
Multiple Time Frame:
This works very well with any instrument and on any time frame. Always its better to do analysis on multi time frame before entry, exit, and trade execution. Back test it with this setup and also observe it on live market. That will give edge in taking trade decisions. All the best and happy trading.
Disclaimer:
This script and setup is written with the sole purpose of identifying the strength of any instrument. Interpretation, trade decisions, and changing inputs are up to each individual users/trades.
KINSKI RSI Short/LongExtends the display of the Relative Strength Index (RSI) by shorts and longs from Bitmex and shows them as a diagram.
How to interpret the display?
- blue line is the default Relative Strength Index
- red line means "oversold
- green line "overbought"
- grey dotted line up/down indicates the optimal range for up and down movements 30 to 70
- in general, the reaching or crossing of the thresholds in the direction of the mid-range is seen as a possible buy or sell signal
- RSI values (blue line) of over 70 percent are considered "overbought", values below 30 percent "oversold
Which settings can be made?
- Selection for the "Currency". Default value is "BTCUSD". Currently only the following currencies are supported "BTCUSD", "ETHUSD", "ETCUSD", "OMGUSD", "XLMUSD", "XTZUSD".
- Selection for calculation formula ("Calculation"). The default value is "hlc3".
- Field for the moving average value ("RSI Length"). The default value is 14, but values of 7, 9 or 25 are also common. The shorter the period under consideration, the more volatile the indicator is, but with longer periods, fewer signals are triggered.
- furthermore you can make layout adjustments via the "Style" menu
Trend Follow with kijun-sen/tenkan sen for 1 Hour SPX
This script determines, plots and alerts on probable trend initiation and continuation points, using tenkan-sen(conversion line of ichimoku), kijun-sen(baseline of ichimoku) and stochastic RSI, for 1 H SPX.
New long/short trend initiates when prices cross above/below kijun sen. The trend continues when prices cross above/below tenkan-sen or stochastic RSI crosses up/down its signal line, while prices are above/below kijun-sen.
It is good to take partial profit between 10-15 points gain and trail the left with stops below kijun-sen line.
While placing the order, using 2-3 points buffer above/below of signal bars is recommended. Additionally, please be careful about clouds and do not place long/short orders below/above clouds.
Trend Follow with 8/34 EMA and Stoch RSI for 1 Hour SPX
The script determines and plots entry points for 1 hour S&P index using 8/34 emas and stochastic RSI. When 8 ema above/below 34 ema up/down crosses of stochastic RSI are considered as long/short entries. Entry prices should be above/below high/low of the signal bars accordingly. Ichimoku cloud can be used as extra filtering.
BB Monitor IndicatorThis is a basic volatile indicator based in the Bollinger Bands that show the explosive market moves (up/down).
LinearReg macdA hybrid of linear regression and MACD
crossing up or down of macd and signal shown by + either blue=up , down=orange
macd >0 bullish =green
macd<0 bearish =red
setting can be change to optimise it
Mathias & Christer EMASo this Strategy is my first at when writing it's not 100% finnished.
The strategy idé builds on EMA (9) being clearly over/under the EMA for some bars.
If the EMA is over this will make a triggerline that when EMA (1) crosses this line it signals a buy/sell.
I don't have a great TP or SL for this yet so as of now I'm only using oposit crossing of close for now.
Colors and indicators:
light green/red - indicates that EMA (9) has been crossed and that a new Triggerline is painted at that candles close position.
dark green/red and Up /down Arrow - indicats that the triggerline has been crossed and an order should be taken here.
green/red squares - are where the order closed.
purple line - EMA (9)
blue line - EMA (1)
Quad CCI ContainmentThe Quad CCI is a trend identification indicator described by Mark Whistler in his book 'Volatility Illuminated'. The reason for using four separate CCI channels is so that we can:
Prevent ourselves from taking positions against momentum.
Time our trades with short-term 'wrist-rocket' thrust from the larger market momentum.
Clearly determine whether the trend is up, down, or sideways.
In his book, Whistler refers to four CCI channels as 'The Four Horsemen'. The 100 and 200 are like big burly swordsmen, which are hard to budge without significant force. The 50-period CCI is more like the guy who's fast on his feet, but still tough enough to take on the big dudes. And the 14-period is similar to the scout of the party. The fastest of the bunch, but also the first to turn-tail at any sign of danger.
Basically, this means that when we see the 100 and 200-CCI stay above the 0 line, we can infer there really isn't any reason for them to move out of their range. The 50-period CCI will sometimes venture over the 0-line, before the hefty battlers. However, the 14-period will often venture (quickly) way out into the yonder, and he will always return to tell his pals what he's found. Crossing back over the 100-line, traders can take 'rocket trend reentry' positions (usually on the median); however, we still want to keep an eye on the flighty 14-period CCI character. If he crosses back over the +100 or -100 level he was just scouting, it means the larger weighted CCI lines could soon to follow too, as the whole bunch runs from larger momentum on the way.
Traders seeking to take a position 'with the trend' can attempt to purchase pullbacks on the mean if:
Longer-term CCI (at least the 200 and 100) are above zero.
The 50-period CCI is not below -100.
The 14-period travels back up from underneath the -100 area.
RSI chop filterThis demonstrates how you might filter your signals using RSI, but the same technique could be applied to Stochastic RSI and any other oscillator that has overbought and oversold conditions.
Use it as a visual indicator to determine when to enter a trade:
Red = Chop zone (no trade)
Bright red = Tight chop (dear god stay away)
Green = Overbought or oversold (signals permitted)
Bright green = Crossing up/down (take the trade)
To apply the filter, simply add 'and not chop' after your conditions as seen in the commented out example.
Sequentially Filtered Moving AverageThe previously proposed sequential filter aimed to filter variations lower than a certain period, this allowed to remove noisy variations and retain only the closing price values that occurred after a consecutive up/down, however because of the noisy nature of the closing price large filtering was impossible, in order to tackle to this problem the same indicator using a simple moving average as input is proposed, this allow for smoother results.
We will see that the proposed indicator can provide an alternative moving average that could be used as slow moving average in crossover systems.
The Indicator
The length parameter as the same function as the one described in the sequential filter post, however here length also control the period of the moving average used input, in short larger values of length will return a smoother but less reactive output.
In blue the moving average with length = 200, and in red the moving average with length = 50.
It is interesting to see how the moving average remain flat during ranging/flat market periods
Unfortunately like the sequential filter the sequentially filtered moving average (SFMA) is not affected by large short term variations such as gaps or short term volatile events. This is because of the nature of the sequential filter to ignore movements amplitude and only focus on the variation period.
Moving Average Crossover System
The SFMA is equal to a simple moving average of period length when a consecutive up/down sequence of size length has occurred, else the SFMA is equal to its precedent value, therefore we could expect less crosses between a fast moving average and the SFMA as slow moving average.
We can see on the figure above that the fast moving average of period 50 (in green) cross more with the slow moving average of period 200 (in red) than with the SFMA of period 200 (in blue).
Crosses can occur at the same time as with the classical slow moving average (in red) or a bit later.
Conclusion
A new moving average based on the recently proposed sequential filter has been proposed, it can be seen that under a moving average crossover system the proposed moving average seems to be more effective at producing less crosses without necessarily doing it with an excessive lag, in fact the moving average has either lag (length-1)/2 or lag length .
In the future it could be interesting to provide an hybrid alternative that take into account volatility as well as variations period.
Thanks for reading !
Price Streak Is Another Way to Spot TrendsPrice is never wrong, but sometimes reading it can be tricky.
Movements in the broader market or a sector can distract from a symbol that's been steadily trending in one direction or another. Sometimes the beginning of a move can also be so subtle that it flies under most people's radar.
Price Streak can help overcome these limitations by tracking consecutive up/down periods. It plots an easy-to-read color-coded histogram.
Because it simply counts the candles in a trend, Price Streak can give a clearer picture than magnitude-biased indicators like relative strength or MACD.
Applying Price Streak to the daily chart of Bitcoin Dominance , we find something very interesting right now: the longest drop since March 2017.
That moment in history, almost three years ago, marked the beginning of the last Altcoin bull market. Ethereum , for example, went from roughly $60 to over $1,300 in the following nine months.
While past performance isn't a guarantee of future results, this illustrates how sustained price moves can reveal changes in character.
Based on Price Streak's current reading, it may support the idea of another Altcoin cycle beginning now.
RedK Vol_Weighted RSI: Extending the power of the classic RSILet's take the classic Relative Strength Index (RSI) and give it couple of modern upgrades - the results are better visuals with improved signals and trade decision support:
Options and features:
- Dual period: look at the short term RSI vs a backdrop of a longer period RSI (expressing the longer-term "prevailing sentiment") - get clearer "re-entry" points in long bull or bear runs
- Longer period RSI has a "Step" option - since what we won't be really interested in the fractions, but more of the broad "strength" of the sentiment (weak, medium..) - default set to a step of 5. please experiment with what works best for you.
- Option to make the RSI volume-weighted. (On by default) - won't say much here, but possibly this is the biggest and most important added feature for those keen on the combined price - volume effect (and Wyckoff'ians)
- Smoothing option -- i would keep this set to 3 to avoid extra lag due to the smoothing
- scaled to +100 / -100 with zero as the signal line - that's how i like oscillators to work
- Adjustable optional overbought / oversold levels - can also be used to also mark strong up/down levels
- designed for the "visually oriented" -- like me :)
- code is open and commented
What Values to use:
many setting combinations possible. play around and find your sweet spot based on what/how you trade. for me, i usually prefer what i set as defaults in the study.
tip: if you set Length = 14, smoothing = 1, Sent. factor =1, Vol Weighted = No, you're back (almost) with a classic RSI - the only difference would be that i use Weighted Moving Average in my calculation of the RSI (i tend to believe WMA is the most naturally-suited for looking at "market price" data series)
Please feel free to use, share or give feedback.
Run Up/Down CounterCounter for number of periods going up or down, given as a positive or negative integer.
Script Stopwatch - PineCoders FAQ█ WARNING
The publication of our LibraryStopwatch has deprecated this publication.
█ ORIGINAL DESCRIPTION
This script calculates the run time of a Pine script. While its numbers are not very precise and it doesn’t work on all scripts, it will help developers calculate run times more precisely than by hand, and so provides Pine coders with an additional profiling tool to help them optimize their code.
How to use the code
• Place the code included between the up/down arrows after your script’s input() calls.
• Comment out the display modes you don’t want to use.
• Save your script, wait and look at the results.
• Results show in different colors, depending on the average time per bar:
- green for < 5 ms
- dark red for < 50 ms
- bright red for > 50 ms (the maximum allowed is 200).
How the code works
The code in this script starts by saving the value of the timenow variable on the first bar. While the time variable returns the time at the beginning of the bar, timenow returns the current time. The code then follows the progression of timenow during the script’s execution. The variable only updates every second, so in between updates the script makes an estimate of the total time elapsed by adding the last average time per bar calculated to each bar that passes until timenow increases by another 1000 because one more second has elapsed since its last update. At that point a new, current average time per bar is calculated and the cycle repeats.
The code only calculates elapsed time for the initial run. Once the realtime bar is hit, timing stops so that time spent in the realtime bar does not affect the numbers once they have been calculated on the script’s initial pass over the dataset.
Notes
• If results show zero elapsed time, it’s most probably because your script executes in less than one second, which is very good. In that case timenow hasn’t changed, so no timing can be calculated.
• The code is quirky and doesn’t work on all scripts.
• It doesn’t properly time execution of security() calls.
• The average time per bar will sometimes vary quite a bit with changes in chart resolution.
Look first. Then leap.